#pragma once

class List
{
public:
	List(void);
	~List(void);

	int Add(void* item);
	void Remove(void* item);

	int Count();
	void* GetItem(int index);

	void Clear();
	void FreeThenClear();
	void** ToArray();


private:
	void** internalList;

	// the current buffer size of list ready to add new items
	int size;

	// the number of items in the list
	int count;
};

